# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-openpyxl
_pkgreal=openpyxl
pkgver=3.0.10
pkgrel=0
pkgdesc="A Python library to read/write Excel 2010 xlsx/xlsm files"
url="https://foss.heptapod.net/openpyxl/openpyxl"
arch="noarch"
license="MIT"
depends="python3 py3-lxml py3-pandas py3-pillow"
checkdepends="python3-dev py3-pytest py3-tox"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://foss.heptapod.net/openpyxl/openpyxl/-/archive/$pkgver/openpyxl-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
6caf3e41cd258c77d8b9be6c484de87767cc152cfb11b2abcc50c3f9d1b16c60e967c4300e9c390ace9ad48322e14ff101ee790d4efec1cfed9636112d1fd523  py3-openpyxl-3.0.10.tar.gz
"
